import request from '@/utils/request'

// 统计审核数
export function countAuditGoods(enterpriseId) {
  return request({
    url: '/goods/auditGoods/countAuditGoods',
    method: 'get',
    params: { enterpriseId }
  })
}

// 商品审核列表
export function pageAuditGoods(query) {
  return request({
    url: '/goods/auditGoods/pagingAuditGoods',
    method: 'get',
    params: query
  })
}

// 保存
export function saveAuditGoods(data) {
  return request({
    url: '/goods/auditGoods/save',
    method: 'post',
    data: data
  })
}

// 查询商品详情
export function getAuditGoodsDetail(auditGoodsId) {
  return request({
    url: '/goods/auditGoods/getAuditGoodsDetail',
    method: 'post',
    params: { auditGoodsId }
  })
}

// 查询审核商品SKU
export function getAuditGoodsById(auditGoodsId) {
  return request({
    url: '/goods/auditGoods/getAuditGoodsById',
    method: 'get',
    params: { auditGoodsId }
  })
}
